package com.bsj.power.common.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.bsj.power.common.def.entity.Fault;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @Description
 * @Author zhaoyang
 * @Date 2024/7/3 15:13
 */
@Mapper
@Repository
public interface FaultMapper extends BaseMapper<Fault> {


    int selectPageAndConditionCount(@Param("vagueStr") String vagueStr
            , @Param("beginTime") String beginTime, @Param("endTime") String endTime);

    List<Fault> selectPageAndCondition(@Param("vagueStr") String vagueStr
            , @Param("beginTime") String beginTime, @Param("endTime") String endTime
            , @Param("beginIndex") Integer beginIndex, @Param("pageSize") Integer pageSize);

    List<Fault> selectByTypeAndTime(@Param("beginTime") String beginTime, @Param("endTime") String endTime, @Param("type") Integer type);
}
